package unit5.part4;

public class AbstractOneTest {
    public static void main(String[] args) {
        Student student = new Student("ZhangSan");
        student.tell();
    }
}

abstract class Person {
    final static String country = "中国";
    String name;
    public Person(String name) {
        this.name = name;
    }
    abstract void tell();
}

class Student extends Person {
    public Student(String name) {
        super(name);
    }
    void tell() {
        System.out.println("我叫：" + name + "，是" + country + "人");
    }
}
